Gesture-controlled interfaces for self-service machines and other applications

ABSTRACT

A gesture recognition interface for use in controlling self-service machines and other devices is disclosed. A gesture is defined as motions and kinematic poses generated by humans, animals, or machines. Specific body features are tracked, and static and motion gestures are interpreted. Motion gestures are defined as a family of parametrically delimited oscillatory motions, modeled as a linear-in-parameters dynamic system with added geometric constraints to allow for real-time recognition using a small amount of memory and processing time. A linear least squares method is preferably used to determine the parameters which represent each gesture. Feature position measure is used in conjunction with a bank of predictor bins seeded with the gesture parameters, and the system determines which bin best fits the observed motion. Recognizing static pose gestures is preferably performed by localizing the body/object from the rest of the image, describing that object, and identifying that description. The disclosure details methods for gesture recognition, as well as the overall architecture for using gesture recognition to control of devices, including self-service machines.

REFERENCE TO RELATED APPLICATIONS

[0001] This application is a continuation-in-part of U.S. patent application Ser. No. 09/371,460, filed Aug. 10, 1999, which claims priority of U.S. provisional patent application Serial No. 60/096,126, filed Aug. 10, 1998, the entire contents of which are incorporated here by reference.

FIELD OF THE INVENTION

[0002] This invention relates to person-machine interfaces and, in particular, to gesture-controlled interfaces for self-service machines and other applications.

BACKGROUND OF THE INVENTION

[0003] Gesture recognition has many advantages over other input means, such as the keyboard, mouse, speech recognition, and touch screen. The keyboard is a very open ended input device and assumes that the user has at least a basic typing proficiency. The keyboard and mouse both contain moving parts. Therefore, extended use will lead to decreased performance as the device wears down. The keyboard, mouse, and touch screen all need direct physical contact between the user and the input device, which could cause the system performance to degrade as these contacts are exposed to the environment. Furthermore, there is the potential for abuse and damage from vandalism to any tactile interface which is exposed to the public.

[0004] Tactile interfaces can also lead hygiene problems, in that the system may become unsanitary or unattractive to users, or performance may suffer. These effects would greatly diminish the usefulness of systems designed to target a wide range of users, such as advertising kiosks open to the general public. This cleanliness issue is very important for the touch screen, where the input device and the display are the same device. Therefore, when the input device is soiled, the effectiveness of the input and display decreases. Speech recognition is very limited in a noisy environment, such as sports arenas, convention halls, or even city streets. Speech recognition is also of limited use in situations where silence is crucial, such as certain military missions or library card catalog rooms.

[0005] Gesture recognition systems do not suffer from the problems listed above. There are no moving parts, so device wear is not an issue. Cameras, used to detect features for gesture recognition, can easily be built to withstand the elements and stress, and can also be made very small and used in a wider variety of locations. In a gesture system, there is no direct contact between the user and the device, so there is no hygiene problem. The gesture system requires no sound to be made or detected, so background noise level is not a factor. A gesture recognition system can control a number of devices through the implementation of a set of intuitive gestures. The gestures recognized by the system would be designed to be those that seem natural to users, thereby decreasing the learning time required. The system can also provide users with symbol pictures of useful gestures similar to those normally used in American Sign Language books. Simple tests can then be used to determine what gestures are truly intuitive for any given application.

[0006] For certain types of devices, gesture inputs are the more practical and intuitive choice. For example, when controlling a mobile robot, basic commands such as “come here”, “go there”, “increase speed”, “decrease speed” would be most efficiently expressed in the form of gestures. Certain environments gain a practical benefit from using gestures. For example, certain military operations have situations where keyboards would be awkward to carry, or where silence is essential to mission success. In such situations, gestures might be the most effective and safe form of input.

[0007] A system using gesture recognition would be ideal as input devices for self-service machines (SSMs) such as public information kiosks and ticket dispensers. SSMs are rugged and secure cases approximately the size of a phone booth that contain a number of computer peripheral technologies to collect and dispense information and services. A typical SSM system includes a processor, input device(s) (including those listed above), and video display. Many SSMs also contain a magnetic card reader, image/document scanner, and printer/form dispenser. The SSM system may or may not be connected to a host system or even the Internet.

[0008] The purpose of SSMs is to provide information without the traditional constraints of traveling to the source of information and being frustrated by limited manned office hours or to dispense objects. One SSM can host several different applications providing access to a number of information/service providers. Eventually, SSMs could be the solution for providing access to the information contained on the World Wide Web to the majority of a population which currently has no means of accessing the Internet.

[0009] SSMs are based on PC technology and have a great deal of flexibility in gathering and providing information. In the next two years SSMs can be expected to follow the technology and price trends of PC's. As processors become faster and storage becomes cheaper, the capabilities of SSMs will also increase.

[0010] Currently SSMs are being used by corporations, governments, and colleges. Corporations use them for many purposes, such as displaying advertising (e.g. previews for a new movie), selling products (e.g. movie tickets and refreshments), and providing in-store directories. SSMs are deployed performing a variety of functions for federal, state, and municipal governments. These include providing motor vehicle registration, gift registries, employment information, near-real time traffic data, information about available services, and tourism/special event information. Colleges use SSMs to display information about courses and campus life, including maps of the campus.

SUMMARY OF THE INVENTION

[0011] The subject invention resides in gesture recognition methods and apparatus. In the preferred embodiment, a gesture recognition system according to the invention is engineered for device control, and not as a human communication language. That is, the apparatus preferably recognizes commands for the expressed purpose of controlling a device such as a self-service machine, regardless of whether the gestures originated from a live or inanimate source. The system preferably not only recognizes static symbols, but dynamic gestures as well, since motion gestures are typically able to convey more information.

[0012] In terms of apparatus, a system according to the invention is preferably modular, and includes a gesture generator, sensing system, modules for identification and transformation in to a command, and a device response unit. At a high level, the flow of the system is as follows. Within the field of view of one or more standard video cameras, a gesture is made by a person or device. During the gesture making process, a video image is captured, producing image data along with timing information. As the image data is produced, a feature-tracking algorithm is implemented which outputs position and time information. This position information is processed by static and dynamic gesture recognition algorithms. When the gesture is recognized, a command message corresponding to that gesture type is sent to the device to be controlled, which then performs the appropriate response.

[0013] The system only searches for static gestures when the motion is very slow (i.e. the norm of the x and y—and z—velocities is below a threshold amount). When this occurs, the system continually identifies a static gesture or outputs that no gesture was found. Static gestures are represented as geometric templates for commonly used commands such as Halt, Left/Right Turn, “OK,” and Freeze. Language gestures, such as the American Sign Language, can also be recognized. A file of recognized gestures, which lists named gestures along with their vector descriptions, is loaded in the initialization of the system. Static gesture recognition is then performed by identifying each new description. A simple nearest neighbor metric is preferably used to choose an identification. In recognizing static human hand gestures, the image of the hand is preferably localized from the rest of the image to permit identification and classification. The edges of the image are preferably found with a Sobel operator. A box which tightly encloses the hand is also located to assist in the identification.

[0014] Dynamic (circular and skew) gestures are preferably treated as one-dimensional oscillatory motions. Recognition of higher-dimensional motions is achieved by independently recognizing multiple, simultaneously created one-dimensional motions. A circle, for example, is created by combining repeating motions in two dimensions that have the same magnitude and frequency of oscillation, but wherein the individual motions ninety degrees out of phase. A diagonal line is another example. Distinct circular gestures are defined in terms of their frequency rate; that is, slow, medium, and fast.

[0015] Additional dynamic gestures are derived by varying phase relationships. During the analysis of a particular gesture, the x and y minimum and maximum image plane positions are computed. Z position is computed if the system is set up for three dimensions. If the x and y motions are out of phase, as in a circle, then when x or y is minimum or maximum, the velocity along the other is large. The direction (clockwiseness in two dimensions) of the motion is determined by looking at the sign of this velocity component. Similarly, if the x and y motion are in phase, then at these extremum points both velocities are small. Using clockwise and counter-clockwise circles, diagonal lines, one-dimensional lines, and small and large circles and lines, a twenty-four gesture lexicon was developed and described herein. A similar method is used when the gesture is performed in three dimensions.

[0016] An important aspect of the invention is the use of parameterization and predictor bins to determine a gesture's future position and velocity based upon its current state. The bin predictions are compared to the next position and velocity of each gesture, and the difference between the bin's prediction and the next gesture state is defined as the residual error. According to the invention, a bin predicting the future state of a gesture it represents will exhibit a smaller residual error than a bin predicting the future state of a gesture that it does not represent. For simple dynamic gestures applications, a linear-with-offset-component model is preferably used to discriminate between gestures. For more complex gestures, a variation of a velocity damping model is used.

[0017] This invention finds wide utility in a large number of application areas, including map control, home automation, security, home appliances, sports, games, business, automotive, and others. In terms of map control, for example, the maps may be associated with weather, military, automotive (i.e., GPS-based or other navigation systems), nautical, aerial, space, security, and telestrator interactions and control. As one more specific disclosed application, a meteorologist may control the generation, selection, presentation or movement of weather maps, satellite views, and other visuals

BRIEF DESCRIPTION OF THE DRAWINGS

[0018]FIG. 1 is a drawing of a gesture recognition system according to the invention;

[0019]FIG. 2 is a gesture recognition system flow chart;

[0020]FIG. 3 is a signal flow diagram of a gesture recognition system according to the invention;

[0021]FIG. 4 is a drawing which shows example gestures in two dimensions;

[0022]FIG. 5 shows three example gestures;

[0023]FIG. 6 is an example of a 24-gesture lexicon according to the invention;

[0024]FIG. 7 depicts a Slow-Down gesture;

[0025]FIG. 8 depicts a Move gesture;

[0026]FIG. 9 depicts an Attention gesture;

[0027]FIG. 10 depicts a Stop gesture;

[0028]FIG. 11 shows Right/Left Turn gestures;

[0029]FIG. 12 shows an “Okay” gesture;

[0030]FIG. 13 shows a Freeze gesture;

[0031]FIG. 14 provides three plots of a human created one dimensional X-Line oscillating motion;

[0032]FIG. 15 shows possible lines associated with x(t,p)=p0+p1t and their equivalent representation in the p-parameter space;

[0033]FIG. 16 illustrates parameter fitting wherein a rule is used for q to bring the error to zero;

[0034]FIG. 17 plots different (xi,yi) data points resulting in a different best fitting q line;

[0035]FIG. 18 depicts a recursive linear least squares method for updating q with subsequent (xi,yi) data points;

[0036]FIG. 19 illustrates an algorithm for determining a specific gesture model according to the invention;

[0037]FIG. 20 is an exaggerated representation of a residual error measurement;

[0038]FIG. 21 is a plot which shows worst case residual ratios for each gesture model, wherein the lower the ratio, the better the model;

[0039]FIG. 22 illustrates how two perpendicular oscillatory line motions may be combined into a circular gesture;

[0040]FIG. 23 shows how a bounding box may be placed around a hand associated with a gesture;

[0041]FIG. 24 provides descriptions from the bounding box of FIG. 23;

[0042]FIG. 25 shows example gestures;

[0043]FIG. 26 is a schematic of hand-tracking system hardware according to the invention;

[0044]FIG. 27 is a flowchart of a color tracking system (CTS) according to the invention;

[0045]FIG. 28 depicts a preferred graphical user interface of the CTS;

[0046]FIG. 29 illustrates the application of target center from difference image techniques;

[0047]FIG. 30 illustrates a color matching technique;

[0048]FIG. 31 is a representation of an identification module; and

[0049]FIG. 32 is a simplified diagram of a dynamic gesture prediction module according to the invention.

DETAILED DESCRIPTION OF THE INVENTION

[0050]FIG. 1 presents a system overview of a gesture controlled self-service machine system according to the invention. FIG. 2 shows a flow chart representation of how a vision system is views the gesture created, with the image data sent to the gesture recognition module, translated into a response, and then used to control a SSM, including the display of data, a virtual environment, and devices. The gesture recognition system takes the feature positions of the moving body parts (two- or three-dimensional space coordinates, plus a time stamp) as the input as quickly as vision system can output the data and outputs what gesture (if any) was recognized, again at the same rate as the vision system outputs data.

[0051] The specific components of the gesture recognition system are detailed in FIG. 3, and these include five modules:

[0052] G: Gesture Generation

[0053] S: Sensing (vision)

[0054] I: Identification Module

[0055] T: Transformation

[0056] R: Response

[0057] At a high level, the flow of the system is as follows. Within the field of view of one or more standard video cameras, a gesture is made by a person or device. During the gesture making process, a video capture card is capturing images, producing image data along with timing information. As the image data is produced, they are run through a feature tracking algorithm which outputs position and time information. This position information is processed by static and dynamic gesture recognition algorithms. When the gesture is recognized, a command message corresponding to that gesture type is sent to the device to be controlled, which then performs and appropriate response. The five modules are detailed below.

[0058] Gesture Creator

[0059] In the Gesture Creator module, a human or device creates a spatial motion to be recognized by the sensor module. If one camera is used, then the motion generated is two dimensional and parallel to the image plane of the monocular vision system. For three dimensional tracking (as is also done with this system), stereo vision using two or more cameras are used.

[0060] The subject gesture recognition system is designed to recognize consistent yet non-perfect motion gestures and non-moving static gestures. Therefore, a human can create such gestures, as well as an actuated mechanism which could repeatedly create perfect gestures. Human gestures are more difficult to recognize due to the wide range of motions that humans recognize as the same gesture. We designed our gesture recognition system to recognize simple Lissagous gesture motions (repeating circles and lines), repeated complex motions (such as “come here” and “go away quickly” back and forth hand motions which we define as “skew” gestures), and static hand symbols (such as “thumbs-up”).

[0061] With regards to human generated gestures used for communication or device control, we chose gestures to be identified based on the following:

[0062] Humans should be able to make the gestures easily.

[0063] The gestures should be easily represented mathematically.

[0064] The lexicon should match useful gestures found in real world environments.

[0065] For the dynamic (circular and skew) gestures, these consist of one-dimensional oscillations, performed simultaneously in two or three dimensions. A circle is such a motion, created by combining repeating motions in two dimensions that have the same magnitude and frequency of oscillation, but with the individual motions ninety degrees out of phase. A “diagonal” line is another such motion. We have defined three distinct circular gestures in terms of their frequency rates: slow, medium, and fast. An example set of such gestures is shown in FIG. 4. These gestures can also be performed in three dimensions, and such more complex motions can be identified by this system.

[0066] The dynamic gestures are represented by a second order equation, one for each axis:

{dot over (x)}₁=x₂

{dot over (x)} ₂=θ₁ x ₁+θ₂

[0067] More complex second-order models are used to recognize more complex gestures (discussed later). This gesture model has no “size” parameter. θ₁ is a frequency measure, and θ₂ is a drift component. The gestures were named “large”, “small”, “fast”, and “slow” due to the human motions used to determine the parameters (see FIG. 5). A fast small circle is used to represent a fast oscillation because humans can not make fast oscillations using large circles.

[0068] For example, a total of 24 gestures are possible when the following are distinct gestures: clockwise and counter-clockwise circles, diagonal lines, one dimensional lines, and small and large circles and lines. Geometric constraints are required to expand the lexicon, because different gestures can result in the same parameters. FIG. 6 shows motions that would cause an identifier to produce the same frequency measure and drift components as it would produce when identifying a slow large circle. When x and y oscillating motions are 90 degrees out of phase, a clockwise circle is produced. Motions that are 270 degrees out of phase result in a counter-clockwise circle. In-phase motions produce a line with a positive slope. When the motions are 180 degrees out of phase, a line with a negative slope is produced. We can create additional gestures from the fast small circle in the same manner.

[0069] As with the previous gestures, additional gestures can be created from these two gestures by varying the phase relationships. FIG. 6 shows a representation of the 24 gestures in possible lexicon. Even more gestures are possible when the third dimension is used.

[0070] Phase relationships are determined as follows. During the gesture, the x's and y's (and z's, if the system is set up for three dimensions) minimum and maximum image plane positions are computed. If the x and y motions are out of phase, as in a circle, then when x or y is minimum or maximum, the other axis' velocity is large. The direction (clockwiseness in two dimensions) of the motion is determined by looking at the sign of this velocity component. Similarly, if the x and y motion are in phase, then at these extremum points both velocities are small.

[0071] Example dynamic gestures used for real world situations were derived from a standard Army Training Manual. A “Slow Down” gesture is a small x-line created to one side of the body (FIG. 7, left side). A “Day Move” gesture is a counterclockwise large slow circle (FIG. 8, left side). The “Attention” gesture is a large y-line overhead motion (FIG. 9). These three gestures are representative of the motion gestures used throughout the Army manual.

[0072] Static gestures are represented as geometric templates. Four gestures are shown and are representative of the static gestures which can be represented and identified by this gesture recognition system. Additionally, language gestures, such as American Sign Language gestures, can also be recognized.

[0073] The example static gestures are:

[0074] Halt—stop hand above head (FIG. 10—left side of figure).

[0075] Left and Right turn—fingers together, palm out, facing left or right (FIG. 11—left side of figure).

[0076] Message Acknowledge (OK)—thumb up (FIG. 12).

[0077] Freeze—Fist at head level (FIG. 13).

[0078] Identifying Moving Gestures Represented as a Dynamic System.

[0079] The gesture recognition system identifies a moving gesture by its dynamics—that is, the structure of its positions in space over time. The system translates the motion information into parameters which are used to develop commands for controlling data outputs and actuated mechanisms. For example, the speed at which a person waves a robot away might directly affect a robot arm's velocity or a mobile robot's speed. In order for recognition to occur, a representation for human gestures is required, from which a computational method for determining and recognizing specific gestures can be derived.

[0080] Although we make these gestures in two and three dimensions, the explanation now detailed is described simply dimension as a basic one-dimensional gesture as a simple example to clarify the distinction between the “shape” and the “dynamics” of a gesture. The techniques for identifying this basic gesture may be used to identify similar oscillatory motions occurring in two and three dimensions.

[0081] First, a dynamic system gesture representation is determined, both the model for representing the oscillatory gestures and parameter determination scheme was developed. For this system a Linear Least Squares method was an on-line computationally efficient technique which allowed us to use a linear-in-parameters gesture model.

[0082] The representative planar gesture used throughout this section to exemplify our method consists of a family of oscillating motions which form a (roughly) horizontal line segment (“x-line motion”). As discussed earlier, a human is incapable of reliably generating a perfect sinusoidal motion. FIG. 14 illustrates the imperfections of a human created x-line motion viewed in three plots. The plots represent the position of the gesture over time, x(t). Viewing position with respect to time in contrast to position and velocity over time provides insight into how we propose to represent gestures. Plot A (leftmost) shows the planar motion in x-position and y-position coordinates, with the gesture's motion constrained to the x-axis. Thus, the “shape” of the motion conveys relatively little information. Plot B (center) shows the same gesture in x-position plotted against time, emphasizing the oscillatory behavior we wish to capture. Plot C (at right) represents the record of x-velocity plotted against x-position over time. We will find it most convenient to represent this motion as it evolves over time in this position versus velocity space, which is called the “phase plane”. Of course, when a human creates a gesture, the resulting motion does not translate into the perfect sinusoid of plot B or a perfect circle of plot C. Instead, there is a natural range of variation that we would nevertheless like to associate with the same gesture. This association we find most naturally achievable in phase space.

[0083] For this dynamic gesture recognition module, a computationally effective mathematical representation for the gesture plotted in FIG. 14 is required. A general representation for time functions might take the form

x(t)=?,

[0084] where “?” would be replaced with some structure based on measurable features which are used to classify the gesture. Of course, there are an infinite number of possible measurable features.

[0085] We can make the number of classifications (the “feature space” dimension) finite by restricting the form of the representations. Instead of representing gestures as x(t), the representation might be constrained through the use of a parameter vector, resulting in x(t,p). The feature space dimension is then equivalent to the number of parameters we store. For example, when:

x(t,p)=p ₀ +p ₁ t, t>0,

[0086] the only possible gestures that we can represent are lines described by the two parameters slope, p₁, and intercept p₀ (see FIG. 15).

[0087] Even with a finite dimensional representation, each unique motion is represented by its own distinct parameters. However, our intuition about human gestures tells us that certain distinct motions should have the same classification. Consider the x-line oscillating gesture discussed earlier. Whether the gesture starts at the left side of the line or the right side (for example, x(0)=−1 or x(0)=+1), the resulting motions would still be identified by a human as the same gesture. Therefore, another type of representation seems desirable.

[0088] Since a human hand forms a gesture, we could imagine a representation in terms of the force exerted by the person's arm muscles. Alternatively, we might imagine representing the gesture as a function of the nerve impulses that travel from the brain to the arm's muscles. However, quite clearly, most of the countless types of such “internal” representations are presently impossible to quantify in any useful manner.

[0089] Four hundred years ago, Newton developed a parsimonious representation of physical motions based on their dynamic properties,

{dot over (x)}(t)=f(x)

[0090] A dynamic system is a mathematical model describing the evolution of all possible states in some state space as a function of time. The set of all possible states is a state space. Given an initial state, the set of all subsequent states as it evolves over time is a “trajectory” or “motion”. For any initial condition, the future evolution of the states in a trajectory remains within that trajectory (the trajectory is an invariant set). Thus, all that is required to describe a particular spatial motion is the differential equation representation and its initial conditions. We use a deterministic representation, as opposed to a stochastic one, because we believe these oscillatory motions are best represented by sine waves or a sum of exponentials as opposed to characteristics based on statistical properties.

[0091] As with the geometric representation, there are an infinite number of gesture classifications of the form {dot over (x)}(t)=f(x). However, as before, we can choose a vector of tunable parameters to make the number of gesture classifications finite. Such representation has the form:

{dot over (x)}(t)=f(x,θ)

[0092] where θ represents the tunable parameters. Fixing the value of θ in a given representation yields a unique set of motions, with different initial conditions, described by {dot over (x)}(t)=f(x,θ). Motivated by the way humans interpret gestures, we associate an entire set of motions with one specific gesture. Thus, choosing different values of θ in a given representation results in a “family” of trajectories sets—a “gesture family.” For example, consider a oscillatory line gesture, the motion of which is constrained to the x-axis. This gesture can be represented in the following two-dimensional state space:

{dot over (x)}₁=x₂

{dot over (x)} ₂=θ₁ x ₁

[0093] where x₁ represents the position of the gesture, x₂ is its velocity, and θ₁ is a specified negative parameter. For any constant θ>0, all trajectories satisfy −θ₁x₁ ²+x₂ ²=const as can be seen by direct differentiation.

[0094] A specific gesture may be considered as a family of sets of trajectories. A human can start the gesture at any point (initial condition) in its trajectory, and the gesture should still be identified as the same oscillating line.

[0095] We represent a given family of gestures (family of sets of trajectories) by a mathematical model which contains a finite number of tunable parameters. A mathematical model described by differential equations, as above, allows the development of a computational scheme that will determine which parameters, the values of θ_(i)'s, correspond to a specific gesture. The set of all valid parameters is the parameter space. The parameter space defines the family of gestures which can be represented by the model. In order to categorize a finite number of gestures in this family and to permit further variability in the exact motions associated with a particular gesture within this family, we partition the parameter space into a finite number of cells—the “lexicon”—and associate all the parameter values in the same cell with one gesture.

[0096] We have derived certain differential equations, composed of state variables and parameters, which intuition suggests may represent human gestures. Such differential equation models can be divided into two types: non-linear-in-parameters (NLIP) and linear-in-parameters (LIP). The two models can be further subdivided into linear-in-state (LIS) and non-linear-in-state (NLIS). It is advantageous to use a NLIP (with NLIS) model because it covers, by definition, a much broader range of systems than an LIP model. However, for reasons to be discussed below, we find it expedient to use a LIP model for our gesture representation.

[0097] We have chosen to represent planar oscillatory gestures as a second-order system believing that a model based on the acceleration behavior (physical dynamics) of a system is sufficient to characterize the oscillatory gestures in which we are interested. This system's states are position and velocity. However, the vision system we use to sense gestures yields only position information. Since velocity is not directly measured, then either the parameter identification method could be combined with a technique for observing the velocity, or the velocity could be determined through position differences. In the following section we show techniques for determining gesture parameters both when the velocity state is observed, and when it is obtained through position differences. By examining the utility of each technique, we develop an appropriate form of the gesture model and parameter identification method.

[0098] A difficulty with using human created gestures is that the underlying true physical model is unknown. Also, because people cannot precisely recreate even a simple circular gesture, multiple sets of parameters could represent the same gesture. Simulations are used both to determine a viable gesture model and to determine if it is possible to discover appropriate parameters for each gesture despite variations in motion.

[0099] We chose to represent motion gestures using dynamic systems. We next determined a model and a method for computing the model's parameters such that the model's parameters will best match an observed gesture motion. FIG. 16 illustrates how the gesture's position is used as an input, with {circumflex over (θ)} representing the unknown parameter values that we wish to match with the “true” parameter values, θ. If these values match, then the error between the true states x and the observed states {circumflex over ({dot over (x)})} will go to zero.

[0100] Our choice of a model and parameter determination scheme was based on an exploration of the following issues:

[0101] Off-line batch techniques versus on-line sequential techniques. We desire our gesture recognition system to identify gestures as they are generated, which requires an on-line technique. Also, the measure of how well a motion matches a gesture's parameters needs to be updated “on-line”.

[0102] State availability. Using a vision system to sense gestures results in image plane position information. However, we are using a second order system to describe gestures. Therefore, we need both positions and velocities for our residual error measurements (see below). Velocity can be obtained through the use of an estimator or by taking a difference of position measurements. Unfortunately, using differences adds noise to the data, which could make parameter identification difficult.

[0103] Data order dependent versus independent (for on-line techniques). Certain on-line techniques will produce different parameter values based on the order the gesture data is presented. Because we define a gesture as a family of trajectories, with each trajectory in the same family equally valid, our method should be data order independent. In particular, different excursions through the same data set should result in the same parameters at the end of the data acquisition phase.

[0104] Linear versus Non-Linear. A model is a combination of linear and non-linear states and parameters. Although perfect (non human created) circular oscillatory motions can be described by a linear-in-parameters and linear-in-states model, a human created gesture may require a more complex model. Furthermore, our system can recognize more complex oscillatory motions. Therefore, a method for identifying parameters in a richer non-linear model is needed, because non-linear models can represent a much broader range of motions.

[0105] We chose our gesture model and parameter determination scheme as follows. First, we decided to de-emphasize off-line batch techniques in favor of on-line ones for reasons already discussed above. The on-line method needs to be chosen carefully, because there are relatively few cases where it can be guaranteed that the estimated parameters will be equivalent to those resulting from off-line techniques applied to the entire data set as a whole.

[0106] Next, in an attempt to use only position data, we examined a Series-Parallel Observer, which provides an estimate of the other unknown state for purely LIS and LIP systems. We were disappointed by this observer because it did not adequately estimate parameters of non-perfect human gestures. Specifically, it was problematic to extend the method to NLIS systems. An on-line gradient descent method was examined, but for presently available methods applicable to NLIP systems, there is no guarantee that the parameters will converge towards their optimal values. Also, the parameters computed via this method are dependent on the order the data is presented. A Linear Least Squares method (LLS) was examined next, which makes use of all the data independent of ordering. The resulting recursive LLS technique work for NLIP models, and, therefore, allow us to examine more flexible and useful gesture models.

[0107] The Recursive Linear Least Squares incrementally incorporates new data for determining the parameters which will best fit a set of data points to a given linear model. The recursive LLS method uses a tuning rule for updating the parameter vector θ without inverting a matrix, creating a more computationally efficient LLS algorithm. A tuning rule is required, because each block of data will result in a different set of parameters, as illustrated in FIG. 17. The separate graphs show that each pair of (x_(i),y_(i)) data points results in a different best fitting θ line. A method of incrementally updating the parameter θ is described below. The concept is illustrated in FIG. 18. After the first two data points determine the best fit line, each additional data point slightly adjusts the line to a new best fit. Each new data point will shift the line less and less due to the weighting auxiliary equation in the recursive LLS method. The formulation below describes how the weighting function operates.

[0108] The recursive (incremental) Linear Least Squares tuning method proceeds as follows. The tuning rule has the form:

θ_(m+1) =g(x _(m) , {dot over (x)} _(m), θ_(m))

[0109] Suppose we have the output data {dot over (x)} and state data x up to time m, and from this data we have already determined the best parameters θ for the set. From [Cohen 96] we know that at the next time step, with {dot over (x)}_(m+1) and x_(m+1): $\theta_{m + 1} = {\left( {\sum\limits_{k = 1}^{m + 1}\quad {f_{k}^{T}f_{k}}} \right)^{T}{\sum\limits_{k = 1}^{m + 1}\quad {f_{k}^{T}{\overset{.}{x}}_{k}}}}$ ${{Define}\quad R_{m + 1}} = {\sum\limits_{k = 0}^{m + 1}\quad {f_{k}^{T}{f_{k} \cdot {Then}}\text{:}}}$ $R_{m} = {{\left( {\sum\limits_{k = 0}^{m - 1}\quad {f_{k}^{T}f_{k}}} \right)^{- 1} + {f_{m}^{T}f_{m}}}\quad = {R_{m - 1} + {f_{m}^{T}f_{m}}}}$

[0110] which implies:

R _(m−1) =R _(m) f _(m) ^(T) f _(m)

[0111] Therefore: $\theta_{m + 1} = {{R_{m + 1}^{- 1}{\sum\limits_{k = 1}^{m + 1}\quad {f_{k}^{T}{\overset{.}{x}}_{k}}}}\quad = {{R_{m + 1}^{- 1}\left( {{\sum\limits_{k = 1}^{m}\quad {f_{k}^{T}{\overset{.}{x}}_{k}}} + {f_{m + 1}^{T}{\overset{.}{x}}_{m + 1}}} \right)}\quad = {{R_{m + 1}^{- 1}\left( {{\sum\limits_{k = 1}^{m}\quad {f_{k}^{T}f_{k}\theta_{m}}} + {f_{m + 1}^{T}{\overset{.}{x}}_{m + 1}}} \right)}\quad = {{R_{m + 1}^{- 1}\left( {{R_{m}\theta_{m}} + {f_{m + 1}^{T}{\overset{.}{x}}_{m + 1}}} \right)}\quad = {{R_{m + 1}^{- 1}\left( {{\left( {R_{m + 1} - {f_{m + 1}^{T}f_{m + 1}}} \right)\theta_{m}} + {f_{m + 1}^{T}{\overset{.}{x}}_{m + 1}}} \right)}\quad = {{R_{m + 1}^{- 1}\left( {{R_{m + 1}\theta_{m}} - {f_{m + 1}^{T}f_{m + 1}\theta_{m}} + {f_{m + 1}^{T}{\overset{.}{x}}_{m + 1}}} \right)}\quad = {\theta_{m} - {R_{m + 1}^{- 1}{f_{m + 1}^{T}\left( {{f_{m + 1}^{T}{\overset{.}{x}}_{m + 1}} - {f_{m + 1}\theta_{m}}} \right)}}}}}}}}}$

[0112] This is an update law for the R_(m+1) and θ_(m+1) terms. We still have to find the inverse of R_(m+1) at each time step. Fortunately, the matrix inversion lemma yields:

(R _(m) +f _(m) ^(T) f _(m))⁻¹ =R _(m) ⁻¹ −R _(m) ⁻¹ f _(m) ^(T)(f _(m) R _(m) ⁻¹ f _(m) ^(T)+1)⁻¹ f _(m) R _(m) ⁻¹

[0113] Therefore: R_(m + 1)⁻¹ = (R_(m) + f_(m)^(T)f_(m))⁻¹   = R_(m)⁻¹ − R_(m)⁻¹f_(m)^(T)(f_(m)R_(m)⁻¹f_(m)^(T) + 1)⁻¹f_(m)R_(m)⁻¹

[0114] The above equation is a recursive formula for R_(m+1) ⁻¹ that is not based on taking the inverse of a matrix. The initial value of R₀ is chosen as the identity matrix. If more importance is attached to recent data than to data received in the remote past, then we can choose θ_(m) to minimize: $\sum\limits_{k = 0}^{m}\quad {\lambda^{m - k}\left( {{\overset{.}{x}}_{k} - {f_{k}^{T}f_{k}}} \right)}$

[0115] where λ is termed the forgetting factor and is chosen with 0<λ<1. This results in: $\theta_{m + 1} = {\theta_{m} + {R_{m + 1}^{- 1}{f_{m + 1}^{T}\left( {{\overset{.}{x}}_{m + 1} - {f_{m + 1}\theta_{m}}} \right)}}}$ ${R_{m + 1}^{- 1} = {{\frac{1}{\lambda}R_{m}^{- 1}} - {\frac{1}{\lambda}R_{m}^{- 1}{f_{m}^{T}\left( {{f_{m}R_{m}^{- 1}f_{m}^{T}} + \lambda} \right)}^{- 1}f_{m}R_{m}^{- 1}}}}\quad$

[0116] The above recursive equation is the identifier in our gesture recognition system. This identifier allows us to represent gestures using a NLIP model, with the parameters identified using an on-line computationally efficient data order independent technique. We now determine the specific model used to represent oscillatory motion gestures.

[0117] Given that we modeled gestures using an LIP/NLIS representation, the following process was used to determine the appropriate model. For the first step, we created phase-plane plots of the gestures to be modeled, as illustrated in the last plot in FIG. 14. A term in a differential equation model was composed of a parameter associated with combinations of multiplied state variables of various powers, that is, of the form θ_(i)x₁ ^(j)x₂ ^(k). An example model (of a one dimensional motion is):

{dot over (x)}₁=x₂

{dot over (x)} ₂=θ₁ x ₁+θ₂

[0118] Intuition was used to “guess” appropriate models that would best match the phase plane motions. Because we believed an acceleration model will sufficiently characterize the gestures in which we are interested, the {dot over (x)}₂ equation is the one modified with additional terms and parameters. For each model, the specific parameters for each gesture in the lexicon were computed using the LLS method.

[0119] The models were tested in simulation by measuring how well each tuned parameter model can predict the future states of its associated gesture (i.e., by computing a total residual error). The model which best discriminates between gestures was the chosen. If none of the models clearly discriminate between different gestures in a lexicon, then new models were tested. The heuristic we used was to add or delete specific terms, and determine if there was a significant change (good or bad) in the model's ability to discriminate gestures.

[0120] Adding two specific terms to the above equation, that is, using the new model

{dot over (x)}₁=x₂

{dot over (x)} ₂=θ₁ x ₁+θ₂ x ₂+θ₃ x ₂ x ₁ ²+θ₄

[0121] results in a model that is better able to discriminate between gestures.

[0122] The results of the process of modeling oscillating circles and lines are detailed in the remaining parts of this section. This process is also applicable to the determination of an appropriate model to classify certain non-linear gestures.

[0123] A variety of linear-in-parameter models for good circle and line gesture representations were tested. As before, each model represented only one dimension of motion, which was expanded to two or three for actually gesture recognition (i.e. an oscillating circle or line is formed when two or three of these decoupled models are present, one for each planar motion dimension). Again, x₁ is the position state, and x₂ is the velocity state. Five of these models are shown below. The determination of such models illustrates how a new (and more comprehensive model) could be determined when required for more complex dynamic motions.

[0124] To use the models described here on a digital computer, a fourth-order Runge-Kutta integration method was used. Simulations showed that a sampling rate of 10 Hz is sufficiently small to allow the use of this method. The linear-with-offset component model is the most basic second order linear system. The offset component allows the model to represent gestures that are offset from the center of the image plane. It contains two parameters and is of the form:

{dot over (x)}₁=x₂

{dot over (x)} ₂=θ₁ x ₁+θ₂

[0125] The Van der Pol equation is a slightly non-linear system, containing three parameters. The θ₂ and θ₃ parameters are attached to damping terms. This system is of the form:

{dot over (x)}₁=x₂

{dot over (x)} ₂=θ₁ x ₁+θ₂ x ₂+θ₃ x ₂ x ₁ ²

[0126] An offset component is added to the Van der Pol equation in this system. This system has four parameters and is of the form:

{dot over (x)}₁=x₂

{dot over (x)} ₂=θ₁ x ₁+θ₂ x ₂+θ₃ x ₂ x ₁ ²+θ₄

[0127] A more non-linear system than the Van der Pol equations, the higher-order terms system contains additional spring-like components. This system has six parameters and is of the form:

{dot over (x)}₁=x₂

{dot over (x)} ₂=θ₁ x ₁+θ₂ x ₁ ²+θ₃ x ₁ ³+θ₄ x ₂+θ₅ x ₂ x ₁ ²+θ₆

[0128] The Velocity Damping Terms system has additional damping terms. It contains eight parameters and is of the form:

{dot over (x)}₁=x₂

{dot over (x)} ₂=θ₁ x ₁+θ₂ x ₁ ²+θ₃ x ₁ ³+θ₄ x ₂+θ₅ x ₂ x ₁ ²+θ₆ x ₂ ³+θ₇ x ₁ ² x ₂ ³+θ₈

[0129] The use of simulations to determine the best gesture model for representing oscillating circles and lines is now detailed. We first detail the residual measure calculation. Next the use of the residual measure to determine the best gesture model is described.

[0130] A predictor bin is composed of a model with parameters tuned to represent a specific gesture. The role of a bin is to determine a gesture's future position and velocity based on its current state. To measure the accuracy of the bin's prediction, we compared it to the next position and velocity of the gesture. The difference between the bin's prediction and the next gesture state is called the residual error. A bin predicting the future state of a gesture it represents will have a smaller residual error than a bin predicting the future state of a gesture it does not represent.

[0131] The computation for the residual error is based on equation:

{dot over (x)} _(k) =F _(k) ^(T)θ

[0132] Recall that f(x) is a two-dimensional vector representing the gesture's position and velocity. Therefore {dot over (x)}_(k) is the gesture's velocity and acceleration at sample k. We compute {dot over (x)}_(k) from the gesture's current and previous position and velocity. The parameter vector {dot over (θ)} is used to seed the predictor bin. Then:

{circumflex over ({dot over (x)})} _(k) =f _(k) ^(T){circumflex over (θ)}

[0133] The residual error is then defined as the normalized difference between the actual value of {dot over (x)}_(k) and the calculated value of {circumflex over ({dot over (x)})}_(k): ${res\_ err} = \frac{{{\overset{.}{x}}_{k} - {\overset{.}{\hat{x}}}_{k}}}{{\overset{.}{x}}_{k}}$

[0134]FIG. 20 illustrates this concept. Consider the gesture at a given velocity and acceleration, sample k. At sample k+1, the predictions from each bin and the actual velocity and acceleration values are shown. The difference between a bin's predicted values and the gesture's actual values (according to equation above) is the residual error for that particular bin.

[0135] The total residual error is the res_err summed for all data samples. The following section presents the residual calculation for each gesture with respect to each of the computed parameters.

[0136] We now detail how we determined which parameterization model for the predictor bin would best differentiate gestures. A data set of position and velocities of gestures is required to test each model. Using a vision system data was recorded for a slow, medium, and fast circular gesture. The data is the x and y position and velocity measurements from the image plane of the vision system, although for these simulations only one of the dimensions is used. There is a small transition time when a human begins a gesture. This transient is usually less than a second long, but the residual error measurement has no meaning during this time. Therefore, gestures that last at least five seconds are used. The data recorded from a human gesture is termed “real gesture data.”

[0137] The total residual error was calculated by subjecting each predictor bin to each gesture type. A measure of a model's usefulness is determined by examining the ratio of the lowest residual error to the next lowest residual error in each column. The worst “residual error ratio” is the smallest ratio from all the columns because it is easier to classify a gesture when the ratio is large.

Gesture Input

[0138] SLOW MEDIUM FAST Slow bin 1.31 1.20 1.37 Medium bin 14.1 0.24 1.01 Fast bin 424 23.1 0.23

[0139] The residual error results of the linear with offset component are shown in the table above.

[0140] The residual errors for the slow and medium gestures, with respect to their associated bins, are an order of magnitude lower than the other errors in their columns. The residual error of the fast gesture, with respect to the fast gesture bin, is one-forth the size of the closest residual error in its column (the medium gesture bin). Therefore, the linear with offset component system is a good candidate for a gesture model.

Gesture Input

[0141] SLOW MEDIUM FAST Slow bin 1.34 1.26 1.38 Medium bin 9.8 0.56 1.17 Fast bin 36 1.79 0.1

[0142] As seen above, the Van der Pol model is only a fair candidate for gesture discrimination. The residual error of the medium gesture with respect to its gesture bin is only two-fifths smaller than the residual error with respect to the slow gesture bin. Also, the residual errors in the slow gesture column are not an order of magnitude apart.

Gesture Input

[0143] SLOW MEDIUM FAST Slow bin 1.3 1.21 1.37 Medium bin 14.5 0.22 0.98 Fast bin 464 25.7 0.11

[0144] The Van der Pol with offset component model is better at discriminating gestures than the model without the offset term (see table above). The residual errors in the medium gesture's column are now an order of magnitude apart. Although the residual errors in the fast gesture's column are not, the discrimination is still slightly better than in the linear with offset component model.

Gesture Input

[0145] SLOW MEDIUM FAST Slow bin 1.29 1.24 1.37 Medium bin 14.6 0.18 1.03 Fast bin 249 20.0 0.11

[0146] The table above shows the residual errors associated with the Higher Order model. This model is an improvement over the Van der Pol with Offset Component model, as the residual errors in the fast gesture's column are now almost an order of magnitude apart.

Gesture Input

[0147] SLOW MEDIUM FAST Slow bin 1.28 136 23.3 Medium bin 13.8 0.17 1 Fast bin 8770 35.9 0.09

[0148] The table above lists the residuals errors for the Velocity Damping model. This is the best model for discriminating between gestures, as the residual errors for each gesture with respect to their tuned bins are all at least an order of magnitude below the other residual errors in their columns.

[0149] A comparison of the worst “residual error ratio” of each model we considered is summarized in FIG. 21, and suggests that the Velocity Damping model is the best choice for our application. However, the technique described here shows how more models could be derived and tested. For simple dynamic gesture applications, the Linear with Offset Component model would be used. For more complex gestures, a variation of the Velocity Damping model would be used.

[0150] Combining One-Dimensional Motions to Form Higher-Dimensional Gestures

[0151] We have shown how predictors can be used to recognize one-dimensional oscillatory motions. Recognition of higher dimensional motions is achieved by independently recognizing multiple, simultaneously created one dimensional motions. For example, the combination of two oscillatory line motions performed in perpendicular axis can give rise to circular planar gestures, as shown in FIG. 22.

[0152] Humans have the ability to create these planar motions. However, they can also make these motions in all three dimensions (for example, circles generated around different axis). To recognize these planar gestures performed in three-dimensional space, a vision system must be able to track a gesture's position through all three physical dimensions. A binocular vision system has this capability, as does a monocular system with an attached laser range finder. Any of these such vision systems can be used with our gesture recognition system to identify three-dimensional gestures.

[0153] Development of a System to Recognize Static Gestures

[0154] Recognizing static hand gestures can be divided into localizing the hand from the rest of the image, describing the hand, and identifying that description. The module to recognize static hand gestures is to be both accurate and efficient. A time intensive process of evaluating hand gestures would prevent the system from updating and following motions which occur in real time. The system is intended to interact with people at a natural pace. Another important consideration is that the background may be cluttered with irrelevant objects. The algorithm should start at the hand and localize the hand from the surroundings.

[0155] In order to meet these demands, the edges of the image are found with a Sobel operator. This is a very fast linear operation which finds approximations to the vertical and horizontal derivatives. In order to use only a single image, the greater of the horizontal and vertical component is kept as the value for each pixel. Besides being quick to calculate, an edge image avoids problems arising from attempting to define a region by locating consistent intensity values or even consistent changes in intensity. These values can vary dramatically in one hand and can be very hard to distinguish from the background as well.

[0156] In order to describe the hand, a box which tightly encloses the hand is first found. This allows a consistent description which is tolerant to changes in scale. To locate this box, we assume a point within the hand is given as a starting point. This is reasonable because the hand will be the principal moving object in the scene. Moving objects may be easily separated and the center of the largest moving area will be in the hand. From this starting point, a prospective box edge is drawn. If this box edge intersects an existing line, it must be expanded. Each side is tested in a spiral pattern of increasing radius from the initial center point. Once three sides have ceased expanding the last side is halted as well. Otherwise, the last side would often crawl up the length of the arm. The bounding box is shown in FIG. 23.

[0157] Once the hand has been isolated with a bounding box, the hand is described (FIG. 24). This description is meant to be scale invariant as the size of the hand can vary in each camera image. At regular intervals along each edge the distance from the bounding edge to the hand's outline is measured. This provides a consistent description which may be rapidly calculated. A description is a vector of the measured distances, allowing a very concise representation.

[0158] The last task of the static gesture recognition is to identify the new description. A simple nearest neighbor metric is used to choose an identification. A file of recognized gestures is loaded in the initialization of the program. This file consists of a list of named gestures and their vector descriptions.

[0159] Considerations

[0160] The primary obstacle in static gesture recognition is locating and separating the hand from the surroundings. Using sophisticated models of the hand or human body to identify with an image are computationally expensive. If orientation and scale are not very constrained, this cannot be done in real time. Our system makes descriptions quickly and can compare them to predefined models quickly.

[0161] The limitations of the current system are a result of being dependent on the fast edge finding techniques. If lighting is highly directional, parts of the hand may be placed in shadow. This can cause odd, irregular lines to be found and defeat the normal description. If the background immediately surrounding the hand is cluttered with strongly contrasting areas, these unrelated lines may be grouped with the hand. This also causes unpredictable and unreliable descriptions. Such a background is very difficult to separate without making assumptions about the hand color or the size of the hand. An upper and lower bound are placed on the size of the hand in the image, but these permit a wide range of distances to the camera and are needed to assure that enough of the hand exists on image to make a reasonable description.

[0162] As long as the hand is within the size bounds (more than a speck of three pixels and less than the entire field of view) and the immediate surroundings are fairly uniform, any hand gesture may be quickly and reliably recognized.

[0163] Multiple camera views can be used to further refine the identification of static gestures. The best overall match from both views would be used to define and identify the static gestures. Furthermore, the system works not just for “hand” gestures, but for any static type of gestures, including foot, limb, and full body gestures.

[0164] The Overall Gesture Recognition System

[0165] In this section, based on the discussed functional and representational issues, we detail the specific components of a dynamic gesture recognition system according to the invention from an architectural and implementational viewpoint. In the preferred embodiment, the system is composed of five modules. FIG. 3 illustrates the signal flow of the gestural recognition and control system, from gesture creation, sensing, identification, and transformation into a system response.

[0166] Gesture Creator

[0167] In the Gesture Creator module, a human or device creates a spatial motion to be recognized by the sensor module. Our gesture recognition system was designed to recognize consistent yet non-perfect motion gestures and non-moving static gestures. Therefore, a human as well as a device can creates the gestures which can be recognizable by the system. Human gestures are more difficult to recognize due to the wide range of motions that humans recognize as the same gesture. We designed our gesture recognition system to recognize simple Lissagous gesture motions (repeating circles and lines), advanced motions such as “come here” and “go there”, and static hand symbols (such as “thumbs-up”).

[0168] Dynamic Gesture Lexicon

[0169] A gesture lexicon is a set of gestures used for communication or device control. We chose gestures for our lexicon based on the following:

[0170] Humans should be able to make the gestures easily.

[0171] Device gestures in the form of repeated motions should be modeled the same as human gestures.

[0172] The gestures should be easily represented as a dynamic system.

[0173] The lexicon should match useful gestures found in real world environments.

[0174] The dynamic gestures used in this system are preferably based upon three one-dimensional oscillations, performed simultaneously in three dimensions (or two oscillations performed in two dimensions). A circle is such a motion, created by combining repeating motions in two dimensions that have the same magnitude and frequency of oscillation, but with the individual motions ninety degrees out of phase. A “diagonal” line is another such motion. To illustrate this, we define three distinct circular gestures in terms of their frequency rates: slow, medium, and fast. Humans create gestures that we define as slow large circles (slow), fast large circles (medium), and fast small circles (fast). More complex gestures can be generated and recognized, but these simple ones are used for illustrative purposes.

[0175] Main Three Gestures

[0176] Using the simpler Linear with Offset model (whose parameters are easier to understand than the more complex models), we represented a circle by two second order equations, one for each axis:

{dot over (x)}₁=x₂

{dot over (x)} ₂=θ₁ x ₁+θ₂

[0177] and

{dot over (y)}₁=y₂

{dot over (y)} ₂=θ₁ y ₁ +y ₂

[0178] The preferred gesture model has no “size” parameter. θ₁ is a frequency measure, and θ₂ is a drift component. The gestures were named “large”, “small”, “fast”, and “slow” due to the human motions used to determine the parameters (see FIG. 25). A fast small circle is used to represent a fast oscillation because humans cannot make fast oscillations using large circles. Models with higher order terms would have parameters with different representations.

[0179] Expanded Lexicon—Geometric Constraints

[0180] A total of twenty-four gestures are possible from this example representation when the following are distinct gestures: clockwise and counter-clockwise circles, diagonal lines, one dimensional lines, and small and large circles and lines. Geometric constraints are required to expand the lexicon, because different gestures can result in the same parameters. FIG. 4 shows motions that would cause an identifier to produce the same frequency measure and drift components as it would produce when identifying a slow large circle. When x and y oscillating motions are 90 degrees out of phase, a clockwise circle is produced. Motions that are 270 degrees out of phase result in a counter clockwise circle. In phase motions produce a line with a positive slope. When the motions are 180 degrees out of phase, a line with a negative slope is produced. We can create additional gestures from the fast small circle in the same manner.

[0181] Given the various combinations of slow, fast, small, and large circles, the only one not used as a gesture is the slow small circle. Since the slow small circle has the same oscillation frequency (medium) as the fast large circle, we need another geometric feature, the circle's size, to differentiate between these two gestures. As with the previous gestures, additional gestures can be created from these two gestures by varying the phase relationships. FIG. 6 shows a representation of the 24 gestures in this example lexicon.

[0182] Phase relationships are determined as follows. During the gesture, the x's and y's minimum and maximum image plane positions are computed. If the x and y motions are out of phase, as in a circle, then when x or y is minimum or maximum, the other axis's velocity is large. The clockwiseness of the motion is determined by looking at the sign of this velocity component. Similarly, if the x and y motion are in phase, then at these extremum points both velocities are small. A similar method is used when the gesture is performed in three dimensions.

[0183] Sensor Module

[0184] Unmodified Cohu solid-state CCD cameras are used as the sensor devices. No filters were used and the background was not modified. A Matrox Meteor capture card was used to scale a captured image to any size without missing any frames. It will capture and transfer full-resolution, full-frame NTSC (640×480) or PAL (768×576) video input in real-time (30 Hz).

[0185] The color tracking system (CTS) uses the color of the hand and its motion to localize the hand in the scene, as shown schematically in FIG. 26. The hardware of the CTS system consists of a color camera, a frame grabber, and an IBM-PC compatible computer. The software consists of the image grabbing software and the tracking algorithm. Once the CTS is running, the graphical user interface displays the live image from the color camera on the computer monitor. The operator can then use the mouse to click on the hand in the image to select a target for tracking. The system will then keep track of the moving target in the scene in real-time.

[0186] The color tracking system is developed on a BSD 4.0 UNIX operating system. The hardware involved consists of a color camera, an image capture board and an IBM PC compatible. The software for the CTS is written in C and uses Motif for its graphical user interface.

[0187] The present HTS system consists of a COHU 1322 color camera with a resolution of 494×768 pixels. The camera is connected to a Meteor image capturing board situated inside a Pentium-II 450 MHz IBM-PC compatible computer. The Meteor board is capable of capturing color video images at 30 frames per second. It is also able to capture these images at any resolution below the resolution of the camera.

[0188] The graphical user interface for the CTS displays a live color image from the camera on the computer screen. The user can then identify the target in the scene and click on it using the mouse. The CTS will then track the target in real-time. The flow chart of the tracking algorithm is shown in FIG. 27.

[0189] We capture the image using functions from the Meteor driver. To provide real-time operation, we setup the board to signal the program using a system interrupt (SIGUSR2). Every time a new frame is ready, the Meteor alerts the program with an interrupt on this signal. The image capture function responds to the interrupt by transferring the current camera image to a buffer and processing it to find the target. The signal mechanism and its handling are what enable the system to operate in real-time.

[0190] The graphical user interface of CTS displays the live camera image on the screen. The user can start tracking by clicking the mouse on the target. This starts the tracking algorithm. The graphical user interface of the CTS is shown in FIG. 28.

[0191] Once the user clicks on the target in the image, we compute the average color of a small region around this point in the image. This will be the color of the target region being tracked in the scene until it is reinitialized. Once tracking begins, we compute the position of the target region in the image using two methods. The first method tracks the target when there is sufficient motion of the target in the image. The second method will take over when there is no motion of the target in the scene.

[0192] Before choosing the methods for finding the target in the scene, the system checks for motion in a region near the current or estimated target position using a motion detecting function. This function computes the difference between the current image and the previous image, which is stored in memory. If motion has occurred there will be sufficient change in the intensities in the region. This will indicate motion. The motion detection function will trigger if a sufficient number of pixels change intensity by a certain threshold value.

[0193] If the motion detection function detects motion, the next step is to locate the target. This is done using the difference image and the target color. When an object moves between frames in a relatively stationary background, the color of the pixels changes between frames near the target (unless the target and the background are of the same color). We compute the color change between frames for pixels near the target location. The pixels whose color changes beyond a threshold make up the difference image. Note that the difference image will have areas, which are complementary. The pixels where the object used to be will complement those pixels where the object is at now. If we separate these pixels using the color of the target, we can compute the new location of the target. The set of pixels in the difference image, which has the color of the target in the new image, will correspond to the leading edge of the target in the new image. If we assume that the target approximates an ellipse of known dimensions, we can compute the position of the center of the target (ellipse) from this difference image (see FIG. 29).

[0194] The color of a pixel in a color image is determined by the values of the Red, Green and Blue bytes corresponding to the pixel in the image buffer. This color value will form a point in the three-dimensional RGB color space (see FIG. 30). For our tracking system, when we compute the average color of the target, we assume that the target is fairly evenly colored and the illumination stays relatively the same. The average color of the target is then the average RGB values of a sample set of pixels constituting the target. When the target moves and the illumination changes the color of the target is likely to change. The color matching function allows us to compute whether a pixel color matches the target color within limits. When the illumination on the target changes, the intensity of the color will change. This will appear as a movement along the RGB color vector as shown in FIG. 30. In order to account for slight variations in the color, we further allow the point in color space to lie within a small-truncated cone as shown in the figure. Two thresholds will decide the shape of the cone. One for the angle of the cone and one for the minimum length of the color vector. Thus, any pixel whose color lies within the truncated cone in color space will be considered as having the same color as the target.

[0195] When the motion detection function fails to detect significant motion in the scene, we use a static target matching function to compute its location. The function searches a small area about the current location of the target to find the best fit in the image for the target. The search will find the location of the target with the highest matching value. We assume that the object is approximately elliptical. The elliptical target is hypothesized at each point in the search space and the matching metric is computed. This matching metric function uses a combination of edge and interior color matching algorithms to get a single matching number.

[0196] The image capture board is capable of providing us with a 480×640-pixel color image at 30 frames per second. Processing such a large image will slow down the program. Fortunately, the nature of the tracking task is such that, only a fraction of the image is of interest. This region called the window of interest lies around the estimated position of the target in the new image. We can compute the location of the target in the new image from the location of the target in the previous image and its velocity. This simple method is able to keep track of the target even when the target moves rapidly. We have found that the window of interest is typically {fraction (1/100)}^(th) the area of the original image. This speeds up the computation of the new target location considerably. A computer with a higher processing speed could process the entire image without resorting to creating a region of interest.

[0197] Identification Module

[0198] The gesture recognition algorithms are located in the Identification Module. This module uses the position and velocity information provided by the sensor module to identify the gesture. The module, shown in FIG. 31, comprises of three components—the Dynamic Gesture Prediction module, the Static Gesture Identification module, and the Overall Determination module (Which Gesture?). The output of the Overall Determination module is sent to a screen display and to the SSM which produces an output based on the gesture command received.

[0199] The Dynamic Gesture Prediction Module

[0200] The Dynamic Gesture Prediction module contains a bank of predictor bins (see FIG. 32). Each predictor bin contains a dynamic system model with parameters preset to a specific gesture. We assumed that the motions of human circular gestures are decoupled in x and y. Therefore, there are separate predictor bins for the x and y axes. In this example of three basic two dimensional gestures, a total of six predictor bins are required. The position and velocity information from the sensor module is fed directly into each bin.

[0201] The idea for seeding each bin with different parameters was inspired by Narendra and Balakrishnan's work on improving the transient response of adaptive control system. In this work, they create a bank of indirect controllers which are tuned on line but whose identification models have different initial estimates of the plant parameters. When the plant is identified, the bin that best matches that identification supplies a required control strategy for the system.

[0202] Each bin's model, which has parameters that tune it to a specific gesture, is used to predict the future position and velocity of the motion. This prediction is made by feeding the current state of the motion into the gesture model. This prediction is compared to the next position and velocity, and a residual error is computed. The bin, for each axis, with the least residual error is the best gesture match. If the best gesture match is not below a predefined threshold (which is a measure of how much variation from a specific gesture is allowed), then the result is ignored; no gesture is identified. Otherwise, geometric information is used to constrain the gesture further. A single gesture identification number, which represents the combination of the best x bin, the best y bin, and the geometric information, is outputted to the transformation module. This number (or NULL if no gesture is identified) is outputted immediately upon the initiation of the gesture and is continually updated.

[0203] Determining Parameter Values

[0204] The parameters used to initially seed each predictor bin were calculated by feeding the data of each axis from the three example basic gestures into the recursive linear least squares. The values for each bin are summarized in the following Table: Parameter Values x-theta-1 x-theta-2 y-theta-1 y-theta-2 slow bin −0.72 149 −0.73 103 medium bin −16.2 3467 −16.3 2348 fast bin −99.3 20384 −97.1 12970

[0205] The Static Gesture Identification Module

[0206] The Static Gesture Identification module only searches for static gestures when the hand motion is very slow (i.e. the norm of the x and y velocities is below a threshold amount). When this happens, the module continually identifies a static gesture or outputs that no gesture was found.

[0207] The static gestures may be easily expanded by writing new gesture descriptions to a configuration file. Each gesture is described by a name tag, width, height, x location, y location, base side, and three vectors (in this example, each consisting of 15 integers) describing the profile of the hand. Because profiles may be significantly different due to varying tilts of the hand, multiple descriptions of fundamentally the same gesture may be desired. The initial or last line may also be less reliable due to missing the contours of the hand edge image.

[0208] Example parameter files are depicted in the following table: Parameters for Halt name: halt arm: 14 width: 32 height: 47 xloc: −1 yloc: −1 4 4 0 0 0 0 0 0 0 0 0 0 6 8 10 9 8 8 7 4 3 3 3 2 2 1 1 1 1 2 17 17 16 12 11 10 10 9 8 1 1 2 4 6 9 Parameters for Turn Right name: go_right arm: 11 width: 47 height: 31 xloc: −1 yloc: 0 47 27 26 23 8 5 1 1 1 23 4 19 12 14 21 31 11 9 7 10 10 9 10 5 2 1 5 8 10 13 31 14 10 10 6 5 4 3 2 3 2 1 1 1 2 Parameters for Acknowledge name: acknowledge arm: 11 width: 38 height: 46 xloc: 0 yloc: 0 38 6 6 8 11 12 10 3 2 1 3 3 9 6 12 46 23 20 3 1 4 7 2 13 16 17 19 21 22 24 46 17 11 2 1 1 2 2 7 3 3 3 4 7 7 Parameters for Freeze (fist) name: freeze arm: 14 width: 27 height: 29 xloc: −1 yloc: −1 0 0 0 4 6 6 3 2 2 2 3 6 7 0 8 27 12 12 4 4 3 3 3 2 2 2 1 1 1 1 27 14 14 13 13 13 4 2 2 2 3 3 1 2 3

[0209] In each the name string is followed by an arm side, width, height, x location and y location. The arm parameter is simply an integer corresponding to above, below, right, or left. The width and height are measured in pixels. The x and y location are 0 if the location is not important or +1 or −1 to restrict recognition of a gesture to one particular quadrant. The following three vectors are the extreme side (the end of the hand) then the top or left side followed by the bottom or right side. The determination of which side is being represented is determined by the arm side parameter. For example, if the base side is from below (as in the Halt gesture below) the first line is from above, then from the left, then from the right. Right and left refer to the overall image—not the facing of the imaged person.

[0210] Another method used for this part is to parameterize each part of the hand (palm, digits, and wrist) as a set of connected “blobs”, that is, three-dimensional shapes which are connected together geometrically. As before, a configuration file would be used to defile how these blobs are connected, with the vision system identifying the blobs which this module sticks together.

[0211] The Overall Determination Module

[0212] This “Which Gesture?” module takes input from both the Static and Dynamic Gesture modules. When the velocity is small, then a static gesture is observed. When the velocity is greater than a threshold value, then a dynamic gesture is observed. The gesture identified is continuously outputted, and can therefore change value over time (the output can even be that no gesture was identified). The gesture identified is sent to the transformation module.

[0213] Transformation Module

[0214] The transformation module takes a gesture type as its input and determines what to do with it. In the case of this system, the gesture is converted to parameters which represent the static or dynamic gesture, which is sent to the system which uses this information to produce a response.

[0215] System Response

[0216] The gesture command can be used for a wide variety of purposes. These include:

[0217] Commands into a virtual reality simulator, to control and interact with the environment.

[0218] Commands for a self service machine (SSM), such as a public information kiosk or Automated Teller Machines.

[0219] Commands to control an actuated mechanism, such as a robot arm or mobile robot.

[0220] Commands to control any device (such as a home appliance).

[0221] It is important to note that these devices can be controlled using static gestures, dynamic gestures, or a combination of the two. Thus, there is more information available to these systems from the gesture input device, thereby allowing for a greater ability for humans to command and control them.

[0222] The key features of our architecture are the prediction modules and the signal flow from gesture creation to system response. The other modules could be replaced with functionally equivalent systems without changing the structure of our architecture. For example, instead of a human, a robot could create the gesture. Alternatively, one could create the gesture using a stylus, with a graphics tablet replacing the vision system in sensor module S. The graphics tablet would output the x and y coordinates to the identification module I. Similarly, module R could be a robot, one as complex as a six degree of freedom robot arm or as simple as a stepper motor based camera platform. The former mechanism requires a more complex transformation scheme in module T, while the latter system needs only a simple high level command generator.

[0223] As discussed earlier, the static and dynamic identification modules contains the majority of the required processing. Compared to most of the systems developed for gesture recognition, this system requires relatively little processing time and memory to identify one gesture feature. This makes it possible to create a system with the ability to identify multiple features in parallel. A sophisticated module could then examine the parallel gesture features and infer some higher level motion or command.

[0224] This invention finds wide utility in a large number of application areas, including map control, home automation, security, home appliances, sports, games, business, automotive, and others, some of which have been mentioned herein above.

[0225] In terms of map control, the maps may be associated with weather, military, automotive (i.e., GPS-based or other navigation systems), nautical, aerial, space, security, and telestrator interactions and control. As one more specific application, a meteorologist may control the generation, selection, presentation or movement of weather maps, satellite views, and other visuals through gesture recognition according to the invention.

[0226] In terms of home automation, gesture control according to the invention may be used to control one or more of the following:

[0227] Lights

[0228] Doors

[0229] Computers

[0230] Robotic pets and associated applications

[0231] Security

[0232] Garage Doors

[0233] Plumbing

[0234] Environmental controls (HVAC)

[0235] Curtains

[0236] Windows

[0237] Automatic pet/human exit/entry

[0238] Baby monitoring

[0239] Pool monitoring

[0240] Alarm clock

[0241] Gesture clapper

[0242] The control of home appliances includes:

[0243] TV/Video

[0244] VCS/DVD/Tivo

[0245] Stereo

[0246] Vacuum

[0247] Sports applications include:

[0248] Training (form, golf swing, batting swing, etc.)

[0249] Richard SIM (interactive personal training)

[0250] Automatic score keeping

[0251] Automatic refereeing

[0252] Personal training and fitness—monitoring and interaction

[0253] Gesture control according to the invention may be used to control:

[0254] Sword fighting games

[0255] Fighting games

[0256] Action games

[0257] Adventure games

[0258] Role playing games

[0259] Car racing

[0260] Concole control

[0261] PC control

[0262] Handheld control

[0263] Arcade control

[0264] Augmented Reality Systems

[0265] Theme part game/interactions

[0266] Interacting with virtual entities

[0267] Interacting in a virtual environment

[0268] Decision Aids

[0269] Business and Automotive Applications include:

[0270] Presentation Training and Control

[0271] Powerpoint control

[0272] Presentation control

[0273] Automotive Map control

[0274] Radio tuning/volume and other controls

[0275] Power Windows

[0276] Cruise control

[0277] Bright light tracking to reduce intensity

[0278] Vehicular motion/behavior tracking

[0279] Robotic control include

[0280] Direct commands

[0281] Intent control

[0282] Interaction with others doing gestures

[0283] Commercial gesture control applications according to the invention include:

[0284] Aviation Runway Control

[0285] Crane Control

[0286] Aircraft Vectoring

[0287] Helicopter

[0288] Animal tracking for zoo/park services

[0289] Safety—tracking of people and objects.

[0290] Ex: tracking deer/animals/humans as the approach a highway

[0291] Ex: weapons not firing when vision systems recognize surrender or other gestures

[0292] Optimization, including the tracking of people and objects may involve:

[0293] Crowd control

[0294] Automatic product ordering

[0295] Shopping

[0296] Restaurants

[0297] Virtual catalogues at malls and stores

[0298] Control of surgical tools

[0299] Criminal monitoring

[0300] Miscellaneous applications include:

[0301] Dynamics based missile tracking

[0302] Lifeguard aid: identify when people are in danger in the water.

[0303] Action interpreting for the handicap

[0304] Alternative control for disabled

[0305] Furthermore, in addition to the modalities described above, gesture capture may occur through vision systems, accelerometers, inertial systems, radio frequency, acoustic tracking, and mechanical linkages. 

We claim:
 1. A map control method, comprising the steps of: storing information relating to a plurality of gestures; imaging a gesture-making target; comparing the target as imaged to the stored information to determine a control operation; and applying the control operation to the generation, selection, presentation, or movement of a map.
 2. The method of claim 1, wherein the target is a human hand.
 3. The method of claim 1, further including the step of generating a bounding box around the target.
 4. The method of claim 1, further including the step of using an operator to find the edges of the target.
 5. The method of claim 1, wherein the recognized gestures are static or dynamic.
 6. The method of claim 1, wherein the map is a weather map.
 7. A gesture-controlled interface for map manipulation, comprising: a sensor module for visually analyzing a gesture made by a human or machine, and outputting image data including position and velocity information associated with the gesture; an identification module operative to identify the gesture based upon the image data output by the sensor module; a transformation module operative to generate a command based upon the gesture identified by the identification module; and a system response module operative to apply to the command from the transformation module to generate, select, present, or move a map.
 8. The interface of claim 7, wherein the map is a weather map. 